package NProfessor;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.GridLayout;

public class LectureCapsulationLv1 extends JPanel {
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;

	public LectureCapsulationLv1() {
		
		setLayout(new BorderLayout(0,0));
		
		//     * TOP *
		makeTopPanel();

		//     * MIDDLE *
		makeCenterPanel();
		
		//         * BOTTOM *
		makeBottomPanel();
	
	}
	public void makeTopPanel(){
		JPanel top = new JPanel();
		add(top, BorderLayout.NORTH);
		
		JLabel lblNewLabel = new JLabel("강의실 등록 창");
		top.add(lblNewLabel);
	}
	
	public void makeCenterPanel(){
		JPanel center = new JPanel(); //패널잡고
		add(center, BorderLayout.CENTER);
		center.setLayout(new GridLayout(0, 4, 0, 0));
		
		JLabel lblNewLabel_1 = new JLabel("과 이름 :");
		center.add(lblNewLabel_1);
		
		textField = new JTextField();
		center.add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_2 = new JLabel("과목 명 :");
		center.add(lblNewLabel_2);
		
		textField_1 = new JTextField();
		center.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblNewLabel_3 = new JLabel("담당 교수 :");
		center.add(lblNewLabel_3);
		
		textField_2 = new JTextField();
		center.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblNewLabel_4 = new JLabel("수업 요일 :");
		center.add(lblNewLabel_4);
		
		textField_3 = new JTextField();
		center.add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNewLabel_5 = new JLabel("수업 시간 :");
		center.add(lblNewLabel_5);
		
		textField_4 = new JTextField();
		center.add(textField_4);
		textField_4.setColumns(10);
		
		JLabel lblNewLabel_6 = new JLabel("강의실 호수 :");
		center.add(lblNewLabel_6);
		
		textField_5 = new JTextField();
		center.add(textField_5);
		textField_5.setColumns(10);
		
	}
	
	public void makeBottomPanel(){
		JPanel bottom = new JPanel();
		add(bottom, BorderLayout.SOUTH);
		
		JButton btnNewButton = new JButton("등록");
		bottom.add(btnNewButton);
		
		
	}
}

